<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META NAME="ROBOTS" CONTENT="NOINDEX,FOLLOW">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><{if $config.site}><{$config.site}><{/if}></title>
<link rel="icon" href="./images/admin/favicon.ico" type="image/x-icon" />
<link href="./css/admin.css" rel="stylesheet" type="text/css" />
<link href="./css/boxy.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body{background:url(./images/admin/bg1.gif) repeat;font-family:微软雅黑, Tahoma, Arial}
#logmain{font-size:0.7em; margin-top:-20px;}
#bottomlink{ width:300px; height:15px; padding-top:0px;}
</style>
</head>
<body>
<form method="post" action="./index.php?c=admin&a=loginAction" name='theForm'>
  <table cellspacing="0" width="560px"  height="458px" cellpadding="0" style="margin:40px auto" align="center" background="images/admin/login_welcome_bg.png">
   <tr>
  <td colspan="2" >&nbsp;</td>
  </tr>
     <tr>
  <td colspan="2" >&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" align="center" height="30" style="font-size:24px; line-height:30px">网 站 管 理 中 心</td>
  </tr>
    <tr>
      <td><img src="./images/admin/login.png"/></td>
      <td style="padding-left: 0px">
      <table id="logmain">
          <tr>
            <td>登陆用户名：</td>
            <td><input width="150" type="text" name="username" /></td>
          </tr>
          <tr>
            <td>登陆密码：</td>
            <td><input  width="150" type="password" name="password" /></td>
          </tr>
          <tr>
            <td>管理认证：</td>
            <td><input  width="150" type="auth" name="auth" /></td>
          </tr>
          <{if $config.verify}>
          <tr>
            <td>输入验证码：</td>
            <td><input  width="150" type="text" name="captcha" class="capital"  /></td>
          </tr>
          <tr>
            <td colspan="2" align="right"><img src="index.php?c=image&a=buildImageVerify" height="20" alt="CAPTCHA" border="1" onclick= this.src="index.php?c=image&a=buildImageVerify&"+Math.random() style="cursor: pointer;width:152px;" title="看不清？点击更换另一个验证码。" /></td>
          </tr>
          <{/if}>
          <tr>
            <td>&nbsp;</td>
            <td><input type="submit" name="submitbtn" value="" class="button" style="background:url(./images/admin/login.jpg); width:74px; height:21px; border:0 none; cursor:pointer" /></td>
          </tr>
          <tr>
            <td colspan="2" align="right">&raquo; <a href="./index.php" style="color:#3CC">网站首页</a><{if $config.repass}> &raquo; <a href="./index.php?c=admin&a=getpass" style="color:white">您忘记了密码吗?</a><{/if}></td>
          </tr>        
        </table>
        <div id="bottomlink">相关链接：<a href="http://www.youngme.me/" target="_blank">技术支持</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.youngme.me/" target="_blank">快速答疑</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.yongsy.com/copyright.jpg" target="_blank"><证书></a></div></td>
    </tr>
  </table>
</form>
<script language="javascript" type="text/javascript" src="./js/jquery-1.7.2.min.js"></script> 
<script language="javascript" type="text/javascript" src="./js/jquery.boxy.js"></script> 
<script type="text/javascript">
$(function(){
var submitbtn     = $("input[name='submitbtn'] ");
var username      = $("input[name='username'] ");
var password      = $("input[name='password'] ");
var captcha       = $("input[name='captcha'] ");
var email         = $("input[name='email'] ");
 <{if $config.verify}>
 var verify=false;
captcha.bind("blur", function () { 
		$.getJSON("./index.php?c=json&a=verify", {vfcode:captcha.val(),rnd: Math.random()}, function(json){
			if(json.verify!=1){
				verify=false;				
			}else{
				verify=true;
			}
		});		
	})
captcha.bind("keypress",function(e){
	if(e.which==13){
		submitbtn.focus();
		return false;		
	};
});	
    <{else}>
var verify=true;   
    <{/if}>
submitbtn.bind('click', function(){
if (username.val().length == 0 || password.val().length == 0 <{if $config.verify}>|| captcha.val().length == 0<{/if}>){
		Boxy.alert("<font color='#000'>请填写完整后再登陆!</font>", null, {title: "提示信息"});
		return false;
	}else{
if(verify){return true}	else{
		Boxy.alert("<font color='#000'>验证码填写有误，不区分大小写!</font>", null, {title: "提示信息"});
		return false;	
	}	
		}
	});				
	})
</script>
<!--author: wengcanvip#gmail.com replace # with at-->
</body>

